package org.millioncall.yueyoga.admin.dao.impl;

import java.util.List;

import org.millioncall.openplatform.common.PaginatedList;
import org.millioncall.openplatform.dao.PreparedQuery;
import org.millioncall.yueyoga.admin.dao.BaseDao;
import org.millioncall.yueyoga.admin.dao.DiscountStrategyDAO;
import org.millioncall.yueyoga.admin.model.DiscountStrategy;

public class DiscountStrategyDAOImpl extends BaseDao implements
		DiscountStrategyDAO {

	@Override
	public List<DiscountStrategy> findAllFreeStrategies() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<DiscountStrategy> findAllOrderStragegies() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<DiscountStrategy> findByProductId(String productId) {
		// TODO Auto-generated method stub
		return null;
	}

	
	public PaginatedList<DiscountStrategy> findAllStragegies(String productId,
			int start, int limit) {
		PreparedQuery<DiscountStrategy> pq = this.getPagableSqlSessionTemplate()
				.findAll("findAllDiscountStrategyList",productId);
		if(pq.list().isEmpty()){
			return null;
		}
		PaginatedList<DiscountStrategy> pl = null;
		return pl;
	}

}
